package com.heima.search.service;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.dto.UserSearchDto;

/**
 * Created by ZYJ on 2021/6/8 23:59
 */
public interface ApAssociateWordsService {
    /**
     * 搜索联想词API
     * @param userSearchDto
     * @return
     */
    ResponseResult findAssociate(UserSearchDto userSearchDto);

    /**
     * 搜索联想词API   用Trie优化搜索联想词
     * @param userSearchDto
     * @return
     */
    ResponseResult findAssociateV2(UserSearchDto userSearchDto);

}
